<?php if ($this->_var['hot_goods']): ?>
<div class="recommend">
<h3>本周热卖</h3>
<?php $_from = $this->_var['hot_goods']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods');$this->_foreach['good_list'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['good_list']['total'] > 0):
    foreach ($_from AS $this->_var['goods']):
        $this->_foreach['good_list']['iteration']++;
?>
	<?php if ($this->_foreach['good_list']['iteration'] % 4 == 1): ?>
	<div class="vertical">
	<?php elseif ($this->_foreach['good_list']['iteration'] % 4 == 3): ?>
	<div class="vertical2">
	<?php endif; ?>
		<a href="<?php echo $this->_var['goods']['url']; ?>">
			<img src="<?php echo $this->_var['goods']['thumb']; ?>" />
			<dl>
				<dt><?php echo $this->_var['goods']['name']; ?><img src="themes/custom/images/site/arrow.png" /></dt>
				<dd class="short"><?php echo $this->_var['goods']['brief']; ?></dd>
				<dd class="price">
					<span class="rmb">RMB</span>
					<?php if ($this->_var['goods']['promote_price'] != ""): ?>
					<?php echo $this->_var['goods']['promote_price']; ?>
					<?php else: ?>
					<?php echo $this->_var['goods']['shop_price']; ?>
					<?php endif; ?>
					<span class="change">.00</span>
				</dd>
			</dl>
		</a>
	<?php if (($this->_foreach['good_list']['iteration'] - 1) % 4 == 1): ?>
	</div>
	<?php elseif (($this->_foreach['good_list']['iteration'] - 1) % 4 == 3): ?>
	</div>
	<?php endif; ?>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</div>
<?php endif; ?>
